package com.tcm.prescribe.mapper;


import com.tcm.prescribe.api.domain.entity.Frequent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FrequentMapper {
    int deleteById(Long id);

    int deleteLogicById(Long id);

    int deleteByUserId(Long uid);

    int deleteLogicByUserId(Long userId);

    int insert(Frequent record);

    Frequent findById(Long id);

    int update(Frequent record);

    List<Frequent> listPageByUserId(@Param("userId") Long userId, @Param("offset") Long offset, @Param("pagesize") Long pagesize);

    Long countByUserId(Long userId);

}